package com.whxd.framework.common.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 树模型
 * 
 * @author 张世鹏
 * @since 2015-2-28
 */
public class TreeDto implements Serializable {

	private Long id;

	private String text;

	private String state = "open";// open,closed

	private boolean checked = false;

	private Object attributes;

	private Integer order;

	private List<TreeDto> children = new ArrayList<TreeDto>();

	private String iconCls;

	private Long pid;

	private String pname;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public Object getAttributes() {
		return attributes;
	}

	public void setAttributes(Object attributes) {
		this.attributes = attributes;
	}

	public List<TreeDto> getChildren() {
		return children;
	}

	public void setChildren(List<TreeDto> children) {
		this.children = children;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public Integer getOrder() {
		return order;
	}

	public void setOrder(Integer order) {
		this.order = order;
	}

}
